import time

week_days = ('星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日')


def get_week_day(t, ft):
    # 将时间按照指定格式转换成元组
    ft_time = time.strptime(t, ft)
    return week_days[ft_time.tm_wday]


if __name__ == "__main__":
    year = int(input('请输入年份:'))
    month = int(input('请输入月份:'))
    day = int(input('请输入天数:'))
    input_time = '%d年%d月%d日' % (year, month, day)
    week_day = get_week_day(input_time, '%Y年%m月%d日')
    print(week_day)
